package com.woniuxy.user.service.Impl;

import com.hc.entity.Follow;
import com.woniuxy.user.mapper.FollowMapper;
import com.woniuxy.user.service.FollowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FollowServiceImpl implements FollowService {
    @Resource
    private FollowMapper followMapper;
    @Override
    public int cancelFollow(Follow follow) {
        return followMapper.cancelFollow(follow);
    }

    @Override
    public void addFollow(Follow follow) {
        followMapper.addFollow(follow.getUserId(),follow.getFollowId());

    }
}
